import { defineStore } from "pinia";
export const useAnalysisStore = defineStore("analysis", {
  state: () => {
    return {
      P_event: {
        _id: 0,
        id: 0,
        eventstate:0,
        title: "None",
        genderData: [],
        type: "None",
        platform: "None",
        sentiment: "None",
        sentimentData: [],
        comments: 0,
        regions: 0,
        articles: 0,
        keywords: [],
        hotwords: [],
        description: ""
      }
    };
  },
  persist: true,
  actions: {
    setAnalysis(e) {
      this.P_event = e;
    },
  },
});
export default useAnalysisStore;